Plug a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 Jul 2015 18:54:13 +0000 (14:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 27 Jul 2015 18:54:13 +0000 (14:54 -0400)
GtkCssProvider was using the wrong unref function for GtkCssKeyframe
objects. Funnily, this didn't crash at all, the refcount was at the
same place in the struct - it just didn't free all the memory, causing
valgrind to complain.

gtk/gtkcssprovider.c

index eb582bfc3ff8edd3fe90fa5266dfef48cafc84a5..f758cfca874e6b58daaec7c89791a6a71ab0fc31 100644 (file)
@@ -1586,7 +1586,7 @@ gtk_css_provider_init (GtkCssProvider *css_provider)
                                                  (GDestroyNotify) _gtk_css_value_unref);
   priv->keyframes = g_hash_table_new_full (g_str_hash, g_str_equal,
                                            (GDestroyNotify) g_free,
-                                           (GDestroyNotify) _gtk_css_value_unref);
+                                           (GDestroyNotify) _gtk_css_keyframes_unref);
 }
 
 static void